<?php
/**
 * Created by PhpStorm.
 * User: the
 * Date: 2019/3/25
 * Time: 13:55
 */
namespace App\Base;

class Request
{

    public $header;

    public $server;

    public $cookie;

    public $get;

    public $post;

    public function setRequest($request)
    {
        $this->get     = isset($request->get) ? $request->get : [];
        $this->post    = isset($request->post) ? $request->post : [];
        $this->cookie  = isset($request->cookie) ? $request->cookie : [];
        $this->header  = isset($requester->header) ? $request->header : [];
        $this->server  = isset($requester->server) ? $request->server : [];
    }

}